//定义全局通用数据

export enum CountryData {
  china = "中国",
  foreign = "海外",
}

export const StyleConst = {
  //分页组件统一高度 对应sl.less的.ant-pagination.mini
  paginationHeight: 60,
  //响应式临界点 对应tailwind.config.js
  breakpoint: {
    xxs: 370,
    xs: 480,
    sm: 576,
    md: 768,
    lg: 992,
    xl: 1200,
    xxl: 1600,
    xxxl: 2000,
  },
};

export enum AiotSubApp {
  AIOT = "AIOT",
  IOPM_APP = "IOPM_APP",
  IOPM_MINIPROGRAM = "IOPM_MINIPROGRAM",
}

interface AiotSubAppItem {
  value: AiotSubApp;
  text: string;
  des: string;
}
export function getAiotSubAppData(exceptApps?: AiotSubApp[]): AiotSubAppItem[] {
  const data: AiotSubAppItem[] = [
    { value: AiotSubApp.AIOT, text: "智能运维管理后台", des: "企业管理人员、运维管理人员、运维工程师等" },
    { value: AiotSubApp.IOPM_APP, text: "智能运维App", des: "运维工程师、维保工程师、运维管理人员等" },
    { value: AiotSubApp.IOPM_MINIPROGRAM, text: "智能运维小程序", des: "业主客户" },
  ];
  if (exceptApps) {
    for (let i = data.length - 1; i >= 0; i--) {
      if (exceptApps.includes(data[i].value)) {
        data.splice(i, 1);
      }
    }
  }
  return data;
}
